class Params {
    constructor() {

    }
    async check (require, data) {
        for (let key of require) {
            if (key in data) {
                continue
            } else {
                return `缺少必要参数${key}`
            }
        }
        return false;
    }
}

module.exports = new Params()